package com.yidianyanglao.buyBack.bean;

import java.util.Date;

/**
 * Created by lf on 2016/11/2 0002.
 */
public class RepurchaseRecordBean {
    private int id;
    private String repurchaseId;
    private int userId;
    private String userName;
    private int seedType;
    private Date createdate;
    private Date operationdate;
    private int bankId;
    private String bankName;
    private String branchName;
    private String mobile;
    private String cardNumber;
    private double applySeednum;
    private String taxpoint;
    private double taxpointValue;
    private String processFee;
    private double processFeeValue;
    private double accountBalance;
    private int repurchaseState;
    private double seednum;
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

    public String getRepurchaseId() {
        return repurchaseId;
    }

    public void setRepurchaseId(String repurchaseId) {
        this.repurchaseId = repurchaseId;
    }

    public int getUserId() { return userId; }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getSeedType() {
        return seedType;
    }

    public void setSeedType(int seedType) {
        this.seedType = seedType;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getOperationdate() {
        return operationdate;
    }

    public void setOperationdate(Date operationdate) {
        this.operationdate = operationdate;
    }

    public int getBankId() {
        return bankId;
    }

    public void setBankId(int bankId) {
        this.bankId = bankId;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public double getApplySeednum() {
        return applySeednum;
    }

    public void setApplySeednum(double applySeednum) {
        this.applySeednum = applySeednum;
    }

    public String getTaxpoint() {
        return taxpoint;
    }

    public void setTaxpoint(String taxpoint) {
        this.taxpoint = taxpoint;
    }

    public double getTaxpointValue() {
        return taxpointValue;
    }

    public void setTaxpointValue(double taxpointValue) {
        this.taxpointValue = taxpointValue;
    }

    public String getProcessFee() {
        return processFee;
    }

    public void setProcessFee(String processFee) {
        this.processFee = processFee;
    }

    public double getProcessFeeValue() {
        return processFeeValue;
    }

    public void setProcessFeeValue(double processFeeValue) {
        this.processFeeValue = processFeeValue;
    }

    public double getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(double accountBalance) {
        this.accountBalance = accountBalance;
    }

    public int getRepurchaseState() {
        //判断不成功或者失败的状态，都为申请中
        if(repurchaseState <1 || repurchaseState>2){
            this.repurchaseState = 0;
        }
        return repurchaseState;
    }

    public void setRepurchaseState(int repurchaseState) {
        this.repurchaseState = repurchaseState;
    }

    public double getSeednum() {
        return seednum;
    }

    public void setSeednum(double seednum) {
        this.seednum = seednum;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "RepurchaseRecordBean{" +
                "id=" + id +
                ", repurchaseId='" + repurchaseId + '\'' +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", seedType=" + seedType +
                ", createdate=" + createdate +
                ", operationdate=" + operationdate +
                ", bankId=" + bankId +
                ", bankName='" + bankName + '\'' +
                ", cardNumber='" + cardNumber + '\'' +
                ", applySeednum=" + applySeednum +
                ", taxpoint='" + taxpoint + '\'' +
                ", taxpointValue=" + taxpointValue +
                ", processFee='" + processFee + '\'' +
                ", processFeeValue=" + processFeeValue +
                ", accountBalance=" + accountBalance +
                ", repurchaseState=" + repurchaseState +
                ", seednum=" + seednum +
                '}';
    }
}
